﻿#ifndef __GAMEOVER_H_
#define __GAMEOVER_H_
#include"Background.h"
class Button;
class GameOver :/*public QObject,*/ public Background
{
	//Q_OBJECT
public:
	GameOver()=default;
	GameOver(const int Score,const int x=0,const int y=0, QWidget* parent = nullptr);
	//初始化
	virtual void init();
	//更新数据
	virtual void update()override;
	//绘图
	virtual void draw(QPainter* painter)override;
	~GameOver();
	bool getRestart();
//signals:
//	//重新创建开始界面
//	void CreateGameStart();
private:
	int m_Score = 0;//分数
	QPen  m_NumPen;
	QFont m_NumFont;
	Button* m_ButtonOver=nullptr;
	Button* m_ButtonRestart = nullptr;
};
#endif // !1
